<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link rel="stylesheet" href="../../../yl/index.css" />
    <link rel="stylesheet" href="../../../style/index.css" />
    <title>边补打卡记录</title>
</head>

<body>
    <div id="app" v-cloak>
        <div class="title">
            <div>
                姓名：<el-input v-model="filterPersonalName" style="width: 200px; margin:0 10px;" placeholder="录入姓名"></el-input>
                年月：<el-date-picker  v-model="filterYearMonth" style="width: 200px; margin:0 10px;" type="year"  placeholder="选择年"> </el-date-picker>
                <!-- <el-input v-model="filterYearMonth" style="width: 200px; margin:0 10px;" placeholder="年月"></el-input> -->
                <el-button icon="Search" style="margin: 0; margin-right: 10px;" @click="check">查询</el-button>
                <el-button icon="Refresh" style="margin: 0; margin-right: 10px;" @click="reset">重置</el-button>

            </div>
        </div>
        <div class="body">
<div class="left">
                <el-tree ref="tree" default-expand-all :expand-on-click-node="false" id="tree" style="max-width: 600px"
                    :data="treeData" @node-click="handleNodeClick" :props="{ label: 'Province' }">
                    <template #default="{ node, data }">
                        <div class="custom-tree-node">
                            <span>{{ node.label }}</span>
                        </div>
                    </template>
                </el-tree>
            </div>
            <div class="right">
                <el-table id="table"
                    :data-options="JSON.stringify({ 'TableName': 'patrol_CheckIn','primary_key':'CheckIn_SerialNumber'})"
                    height="450" v-loading="loading" ref="multipleTable" tooltip-effect="dark" :data="Tabledata"
                    @selection-change="handleSelectionChange">
                    <el-table-column prop="Yearmonth" label="所属年度" align="center">
                    </el-table-column>
                    <el-table-column prop="Personal_Name" label="人员姓名" align="center">
                    </el-table-column>
                    <el-table-column prop="ID_Card_Number" label="身份证号" width="auto" align="center" >
                    </el-table-column>
                    <!-- <el-table-column prop="RR_Village_Number" label="计划ID" align="center">
                    </el-table-column> -->
                    <el-table-column prop="Village" label="所属村" width="auto" align="center">
                    </el-table-column>
                    <el-table-column prop="Gender" label="性别" align="center">
                    </el-table-column>
                    <el-table-column prop="Contact_Phone" label="联系电话" align="center">
                    </el-table-column>
                    <el-table-column prop="days" label="累计打卡天数" align="center">
                    </el-table-column>
                    <el-table-column label="操作" fixed="right" width="100">
                        <template #default="{row}">
                            <!-- <el-button size="small" @click="handleOriginalData(row)">
                                原始数据
                            </el-button> -->
                            <el-button size="small" type="danger" @click="handleCalendar(row)">
                                详细
                            </el-button>
                        </template>
                    </el-table-column>
                </el-table>
                <!-- <el-pagination style="margin-top: 1%;" :current-page="page.PageNumber" :page-size="page.RowAmount"
                    :page-sizes="[10, 100, 200, 300, 400]" layout="total, sizes, prev, pager, next, jumper"
                    :total="Total" @size-change="handleSizeChange" @current-change="handleCurrentChange" /> -->
            </div>
        </div>
        <el-dialog v-model="showDialog" width="550" class="custom-dialog">
            <template #header>
                <div class="dialog-header">
                    <span>设置显示字段</span>
                </div>
            </template>
            <div class="dialog-content">
                <el-checkbox v-model="isAllChecked" @change="handleAllChecked"
                    class="full-width-checkbox">全选</el-checkbox>
                <div class="checkbox-columns">
                    <el-checkbox-group v-model="checkedFields" style="width: 100%; display: flex; flex-wrap: wrap">
                        <el-checkbox :disabled="field.COLUMN_KEY === 'PRI'" v-for="field in fields" :key="field"
                            :value="field" style="width: 50%; height: 30px; margin-right: 0px">
                            {{ field.COLUMN_COMMENT }}
                        </el-checkbox>
                    </el-checkbox-group>
                </div>
            </div>
            <template #footer>
                <div class="dialog-footer">
                    <el-button @click="showDialog = false" class="cancel-btn">取消</el-button>
                    <el-button type="primary" @click="saveFields" class="confirm-btn">保存</el-button>
                </div>
            </template>
        </el-dialog>
    </div>
    </div>
    <script src="../../../utils/utils.js"></script>
    <script src="../../../config/config.js"></script>
    <script src="../../../utils/mixins.js"></script>
    <script src="../../../yl/vue.js"></script>
    <script src="../../../yl/index.js"></script>
    <script src="../../../yl/zh-cn.mjs"></script>
    <script src="../../../yl/index.iife.min.js"></script>
    <script src="../../../yl/jquery.min.js"></script>
    <script src="../../../utils/jquery.cookie.js"></script>
    <script src="../../../api/request.js"></script>
    <script src="js/index.js"></script>
</body>

</html>